﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Liekhus.TimeTracker.Module.Web.Providers;
using Xpo = DevExpress.Xpo;
using DevExpress.Xpo;
using Liekhus.TimeTracker.Module;

namespace Liekhus.TimeTracker.MVC.Web.Controllers
{
    public class TaskController : BaseXpoController<Task>
    {
        public override void MapObjectPersistence(Task newObject, Task oldObject)
        {
            newObject.Name = oldObject.Name;
            newObject.Description = oldObject.Description;
            newObject.CoveyQuandrant = oldObject.CoveyQuandrant;
            newObject.CoveyRole = oldObject.CoveyRole;
            newObject.Status = oldObject.Status;
        }
    }
}
